//
//  NewsCell.m
//  LOL_JewelBox
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "NewsCell.h"

@implementation NewsCell

- (void)dealloc
{
    [_titleLabel release];
    [_descLabel release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        self.titleLabel.font = [UIFont  fontWithName:@"Helvetica-Bold" size:16];
        [_titleLabel release];
        
        self.descLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.descLabel];
        self.descLabel.font = [UIFont systemFontOfSize:12];
        self.descLabel.tintColor = [UIColor grayColor];
        self.descLabel.numberOfLines = 0;
        [_descLabel release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(CONTENTWIDTH *0.01333, CONTENTHEIGHT *0.07143, CONTENTWIDTH *0.97334, CONTENTHEIGHT *0.42857);
    self.descLabel.frame = CGRectMake(CONTENTWIDTH *0.01333, CONTENTHEIGHT *0.5, CONTENTWIDTH *0.97334, CONTENTHEIGHT *0.42857);
}

@end
